package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zongzi
 * @description: 任务表，发送MQ
 * @date: 2025/2/17
 */
@Mapper
public interface ITaskDao {

    void insert(Task task);

    void updateStateByMessageId(Task task);

    Task queryTaskByMessageId(@Param("messageId") String messageId);

    List<Task> queryNoSendTaskList();

    void batchInsert(@Param("tasks") List<Task> tasks);
}
